/* 科技感导航条样式 */

/* 科技感颜色变量 */
:root {
  --tech-primary: #1890ff;
  --tech-secondary: #0050b3;
  --tech-accent: #40a9ff;
  --tech-dark: #001529;
  --tech-light: #e6f7ff;
  --tech-glow: rgba(24, 144, 255, 0.5);
}

/* 科技感导航条 */
.tech-header {
  background: linear-gradient(90deg, var(--tech-dark), var(--tech-secondary), var(--tech-dark));
  position: relative;
  overflow: visible;
  border: 2px solid rgba(64, 169, 255, 0.6);
  border-radius: 8px;
  margin: 8px;
  box-shadow:
    0 0 20px rgba(24, 144, 255, 0.4),
    0 0 40px rgba(24, 144, 255, 0.2),
    inset 0 0 20px rgba(24, 144, 255, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 外层发光边框 */
.tech-header::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg,
      rgba(64, 169, 255, 0.8) 0%,
      rgba(24, 144, 255, 0.4) 25%,
      rgba(64, 169, 255, 0.8) 50%,
      rgba(24, 144, 255, 0.4) 75%,
      rgba(64, 169, 255, 0.8) 100%);
  border-radius: 12px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* 内部装饰边框 */
.tech-header::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(64, 169, 255, 0.3);
  border-radius: 5px;
  z-index: 1;
  pointer-events: none;
}

/* 静态粒子 */
.tech-header .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: rgba(64, 169, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(64, 169, 255, 0.3);
}

.tech-header .particle:nth-child(1) {
  top: 10%;
  left: 10%;
}

.tech-header .particle:nth-child(2) {
  top: 20%;
  left: 20%;
}

.tech-header .particle:nth-child(3) {
  top: 15%;
  left: 50%;
}

.tech-header .particle:nth-child(4) {
  top: 30%;
  left: 70%;
}

.tech-header .particle:nth-child(5) {
  top: 40%;
  left: 90%;
}

/* 科技感导航容器 */
.tech-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 16px;
}

/* 科技感Logo */
.tech-logo {
  display: flex;
  align-items: center;
  position: relative;
}

.center-section .tech-logo {
  padding-bottom: 3px;
}

.center-section .tech-logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tech-accent), transparent);
  box-shadow: 0 0 10px 1px var(--tech-glow);
}

.center-section .header-title {
  margin: 0 !important;
  font-size: 20px !important;
  color: var(--tech-light) !important;
  text-shadow: 0 0 10px var(--tech-glow) !important;
  letter-spacing: 1px;
}

.tech-logo-icon {
  font-size: 24px;
  color: var(--tech-accent);
  margin-right: 12px;
  text-shadow: 0 0 10px var(--tech-glow);
}

/* 科技感菜单 */
.tech-menu {
  background: transparent !important;
}

.tech-menu .ant-menu-item {
  position: relative;
  margin: 0 15px !important;
  border-bottom: none !important;
  transition: all 0.3s ease;
}

.tech-menu .ant-menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--tech-accent);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  box-shadow: 0 0 8px 1px var(--tech-glow);
}

.tech-menu .ant-menu-item-selected::after {
  transform: scaleX(1);
  left: 0 !important;
  right: 0 !important;
}

.tech-menu .ant-menu-item-selected {
  background: rgba(24, 144, 255, 0.1) !important;
  box-shadow: 0 0 10px rgba(24, 144, 255, 0.2);
}

.tech-menu .ant-menu-item:hover {
  background: rgba(24, 144, 255, 0.05) !important;
  color: var(--tech-accent) !important;
}

/* 科技感图标 */
.tech-icon {
  font-size: 18px;
  margin-right: 8px;
  text-shadow: 0 0 5px var(--tech-glow);
}

.tech-icon-light {
  font-size: 18px;
  color: var(--tech-light);
  margin-right: 4px;
  text-shadow: 0 0 5px var(--tech-glow);
}

/* 科技感选择器 */
.tech-selector {
  background: rgba(0, 21, 41, 0.5);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(64, 169, 255, 0.2);
  box-shadow: 0 0 8px rgba(24, 144, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.tech-selector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tech-accent), transparent);
}

.tech-label {
  color: var(--tech-accent);
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 0 5px var(--tech-glow);
}

.tech-select .ant-select-selector {
  background: rgba(0, 21, 41, 0.7) !important;
  border: 1px solid var(--tech-accent) !important;
  box-shadow: 0 0 5px rgba(24, 144, 255, 0.3) !important;
}

.tech-select .ant-select-selection-item {
  color: var(--tech-light) !important;
  font-weight: 500;
}

.tech-select .ant-select-arrow {
  color: var(--tech-accent) !important;
}

/* 科技感用户信息 */
.tech-user {
  background: rgba(0, 21, 41, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(64, 169, 255, 0.2);
  box-shadow: 0 0 8px rgba(24, 144, 255, 0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tech-user::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tech-accent), transparent);
}

.tech-user:hover {
  background: rgba(0, 21, 41, 0.7);
  box-shadow: 0 0 12px rgba(24, 144, 255, 0.2);
}

.tech-avatar {
  background: var(--tech-secondary) !important;
  border: 2px solid var(--tech-accent) !important;
  box-shadow: 0 0 8px var(--tech-glow) !important;
}

.tech-username {
  color: var(--tech-accent) !important;
  margin-left: 8px;
  font-weight: 500;
  text-shadow: 0 0 5px var(--tech-glow);
}

/* 科技感全屏按钮 */
.fullscreen-btn.tech-btn {
  background: rgba(0, 21, 41, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(64, 169, 255, 0.2);
  box-shadow: 0 0 8px rgba(24, 144, 255, 0.1);
  margin-right: 12px;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.fullscreen-btn.tech-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tech-accent), transparent);
}

.fullscreen-btn.tech-btn:hover {
  background: rgba(0, 21, 41, 0.7);
  box-shadow: 0 0 12px rgba(24, 144, 255, 0.2);
}

.fullscreen-btn.tech-btn .anticon {
  font-size: 18px;
  text-shadow: 0 0 5px var(--tech-glow);
}